//
//  SRLoadingHUD.m
//  StockpdfReading
//
//  Created by mac on 2017/6/19.
//  Copyright © 2017年 上海LOL信息技术服务有限公司. All rights reserved.
//

#import "SRLoadingHUD.h"

@interface SRLoadingHUD ()


@end



@implementation SRLoadingHUD


+(void)showCustomHud{
    dispatch_async(dispatch_get_main_queue(), ^{
        MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:YES];
        hud.mode = MBProgressHUDModeIndeterminate;
    });
}

+(void)hideHud{
    dispatch_async(dispatch_get_main_queue(),^{
        [MBProgressHUD hideAllHUDsForView:[UIApplication sharedApplication].keyWindow animated:YES];
    });
}






@end











